package test;

import Util.javautil1;

import java.sql.ResultSet;
import java.sql.SQLException;

public class zhens {
    public static void main(String[] args) throws SQLException {
        String sql="select * from books";
        Object[] o={};
        ResultSet rs= javautil1.excutquery(sql,o);
        while (rs.next()) {
            System.out.println("学号为" + rs.getObject("bookID") +
                    "\t姓名为" + rs.getObject("bookName") +
                    "\t序号为" + rs.getObject("bookCounts") +
                    "\t奥利给为" + rs.getObject("detail"));
        }

    }
}
